<!DOCTYPE HTML>
<html>
  <head>
  <title>Today (<?php echo date('Y-m-d',time())?>)</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <link rel="stylesheet"  href="<?php echo W_BASE_URL?>css/3rd/jqmobile/jquery.mobile-1.1.0.css" />
  <script type="text/javascript" src="<?php echo W_BASE_URL?>js/3rd/jquery.min.js"></script>
  <script type="text/javascript" src="<?php echo W_BASE_URL?>js/3rd//jquery.mobile.min.js"></script>
  <script type="text/javascript" src="<?php echo W_BASE_URL?>js/3rd/cordova-1.6.1.js"></script>
  
  <script type="text/javascript" charset="utf-8">
     function onLoad(){
          document.addEventListener("deviceready", onDeviceReady, true);
     }
     function onDeviceReady(){
          navigator.notification.alert("PhoneGap is working");
     }
  </script>
  <style>
    #astro .ui-icon { background:  url(<?php echo W_BASE_URL?>css/imgs/101-gameplan.png) 50% 50% no-repeat; background-size: 24px 22px; }
  </style>
  </head>
  <body onload="onLoad();">
      <div data-role="page" id="one">
          <div data-role="header">
            
              <?php if(isset($date_yesterday_link)&&!$date_yesterday_link): ?>
              <!--<a href="#" data-role="button" data-icon="arrow-l">前一天</a>-->
              <?php else: ?>
              <a data-transition="slidefade" href="<?php echo URL('index',array('date'=>$date_yesterday)); ?>" data-role="button" data-icon="arrow-l">
              <?php if($date_now==$date_today): ?>
              昨天
              <?php else: ?>
              前一天
              <?php endif; ?>
              </a>
              <?php endif; ?>
              
              <h1>
              <?php echo $date_now==$date_today?'今天':$date_now;?>
              </h1>
              <?php if(isset($date_tomorrow_link)&&!$date_tomorrow_link): ?>
              <!--<a href="#" data-role="button" data-icon="arrow-r">后一天</a>-->
              <?php else: ?>
              <a data-transition="slidefade" href="<?php echo URL('index',array('date'=>$date_tomorrow)); ?>" data-role="button" data-icon="arrow-r">
              <?php if($date_now==$date_today): ?>
              明天
              <?php else: ?>
              后一天
              <?php endif; ?>
              </a>
              <?php endif; ?>
          </div><!-- /header -->

          <div data-role="content">
          <?php if(isset($list)): ?>
              <div class="content-primary">
                <ul data-role="listview">
                    <?php if(isset($list['zhzs'])): ?>
                    <li>
                    <a href="index.html">综合运势
                    <span class="ui-li-count">
                    <?php echo $list['zhzs'] ?></span>
                    </a>
                    </li>
                    <?php endif; ?>
                    <?php if(isset($list['aqys'])): ?>
                    <li><a href="index.html">爱情运势 <span class="ui-li-count"><?php echo $list['aqys'] ?></span></a></li>
                    <?php endif; ?>
                    <?php if(isset($list['gzzk'])): ?>
                    <li><a href="index.html">工作状况 <span class="ui-li-count"><?php echo $list['gzzk'] ?></span></a></li>
                    <?php endif; ?>
                    <?php if(isset($list['lctz'])): ?>
                    <li><a href="index.html">理财投资 <span class="ui-li-count"><?php echo $list['lctz'] ?></span></a></li>
                    <?php endif; ?>
                    <?php if(isset($list['jkzs'])): ?>
                    <li><a href="index.html">健康指数 <span class="ui-li-count"><?php echo $list['jkzs'] ?></span></a></li>
                    <?php endif; ?>
                    <?php if(isset($list['stzs'])): ?>
                    <li><a href="index.html">商谈指数 <span class="ui-li-count"><?php echo $list['stzs'] ?></span></a></li>
                    <?php endif; ?>
                    <?php if(isset($list['xyys'])): ?>
                    <li><a href="index.html">幸运颜色 <span class="ui-li-count"><?php echo $list['xyys'] ?></span></a></li>
                    <?php endif; ?>
                    <?php if(isset($list['xysz'])): ?>
                    <li><a href="index.html">幸运数字 <span class="ui-li-count"><?php echo $list['xysz'] ?></span></a></li>
                    <?php endif; ?>
                    <?php if(isset($list['spxz'])): ?>
                    <li><a href="index.html">速配星座 <span class="ui-li-count"><?php echo $list['spxz'] ?></span></a></li>
                    <?php endif; ?>
                </ul>
                </div><!--/content-primary -->
                <div class="ui-body">
                <p><?php echo $list['content'] ?> </p>
                </div>
            <?php endif; ?>
          </div><!-- /content -->

          <div data-role="footer" data-theme="d" data-position="fixed">
              <div data-role="navbar" data-iconpos="top">
                    <ul>
                        <li><a href="a.html" data-icon="home">首页</a></li>
                        <li><a href="<?php echo URL('index',array('date'=>$date_today)); ?>" class="ui-btn-active" data-icon="custom" id="astro">星座</a></li>
                    </ul>
                </div>
          </div>
      </div>
  </body>
</html>